@tool
extends CollisionPolygon2D


class_name VisualCircleCollision2D
"""
视野范围矩形碰撞区域
"""


## 区域半径大小
@export var radius: float = 40
## 绘制点的角度间隔
@export_range(0, 360, 1, "degrees") var step_degress: int = 5


func _ready() -> void:
    var points: PackedVector2Array = PackedVector2Array()
    ShapeDraw.get_circle_arc_points(points, radius, 0, TAU, step_degress)
    polygon = points
